package Threa;

public class Sale extends Thread{
    public void run(){
        int   num=0;
        int count = 100;
        while(true){
            num++;
            count--;
//          if (count>0){
//              return;
//          }
//          try{
//              Thread.sleep(500);
//          } catch (InterruptedException e) {
//              e.printStackTrace();
//          }
            System.out.println(Thread.currentThread().getName()+"强到第"+num+"张票，剩余"+count+"张票！");
        }

    }
}
